package com.menu.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.menu.system.mapper.MenuImagesMapper;
import com.menu.system.domain.MenuImages;
import com.menu.system.service.IMenuImagesService;

/**
 * imgService业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-22
 */
@Service
public class MenuImagesServiceImpl implements IMenuImagesService 
{
    @Autowired
    private MenuImagesMapper menuImagesMapper;

    /**
     * 查询img
     * 
     * @param id img主键
     * @return img
     */
    @Override
    public MenuImages selectMenuImagesById(Long id)
    {
        return menuImagesMapper.selectMenuImagesById(id);
    }

    /**
     * 查询img列表
     * 
     * @param menuImages img
     * @return img
     */
    @Override
    public List<MenuImages> selectMenuImagesList(MenuImages menuImages)
    {
        return menuImagesMapper.selectMenuImagesList(menuImages);
    }

    /**
     * 新增img
     * 
     * @param menuImages img
     * @return 结果
     */
    @Override
    public int insertMenuImages(MenuImages menuImages)
    {
        return menuImagesMapper.insertMenuImages(menuImages);
    }

    /**
     * 修改img
     * 
     * @param menuImages img
     * @return 结果
     */
    @Override
    public int updateMenuImages(MenuImages menuImages)
    {
        return menuImagesMapper.updateMenuImages(menuImages);
    }

    /**
     * 批量删除img
     * 
     * @param ids 需要删除的img主键
     * @return 结果
     */
    @Override
    public int deleteMenuImagesByIds(Long[] ids)
    {
        return menuImagesMapper.deleteMenuImagesByIds(ids);
    }

    /**
     * 删除img信息
     * 
     * @param id img主键
     * @return 结果
     */
    @Override
    public int deleteMenuImagesById(Long id)
    {
        return menuImagesMapper.deleteMenuImagesById(id);
    }
}
